package com.smart.entity.business;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smart.mybatis.annotation.Column;
import com.smart.mybatis.enums.QueryType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@FieldNameConstants
@TableName("channel")
@Data
public class ChannelEntity implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private String id;
    /**
     * 采集器id
     */
    @TableField(value = "collector_id")
    private String collectorId;
    /**
     * 通道号
     */
    @TableField(value = "channel_number")
    private Integer channelNumber;

    /**
     * 采集数据点的顺序
     */
    @TableField(value = "ch")
    private String ch;
    /**
     * 工作模式
     */
    @TableField(value = "om")
    private String om;
    /**
     * 串口速率
     */
    @TableField(value = "br")
    private String br;
    /**
     * 串口/数据位
     */
    @TableField(value = "bd")
    private String bd;
    /**
     * 串口停止位
     */
    @TableField(value = "bs")
    private String bs;
    /**
     * 串口校验位
     */
    @TableField(value = "bc")
    private String bc;
    /**
     * 采集命令的数据串
     */
    @TableField(value = "di")
    private String di;
    /**
     * 采集命令的解析方式
     */
    @TableField(value = "parse_type")
    private String parseType;
    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private String createDate;
}
